// Game

Assault.Game        = {}
Assault.Game.Paused = false

// Print

function Assault.Game.Print(Text)
	print("[Assault] "..Text)
end

// Sound

function Assault.Game.Sound(Vector, Entity, Sound)
	local Position = Entity:EntityGetPosition()
	
	// Len
	
	local Len = Vector:GetVectorDistance(Position)
	
	// Size
	
	local Size = ScrW() / 2
	
	// Volume
	
	local Volume = 100 - ((100 / Size) * Len)
	
	// Clamp
	
	Volume = math.Clamp(Volume, 0, 100)
	
	// Emit sound
	
	Assault.Client:EmitSound(Sound, Volume)
end